<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>

<s:div id="table_content">

    <table>
        <thead>
        <th>Name</th>
        </thead>
        <tbody>
        <s:iterator value="list" var="x">
            <tr>
                <th>
                    <s:a href="#" onclick="callbackVendors('%{id}','%{name}')" theme="simple" > <s:property value="name"/></s:a>
                </th>
            </tr>
        </s:iterator>
        </tbody>
    </table>
</s:div>
<script type="text/javascript">
    function callbackVendors(id,name){
        var vendor = Vendor(id,name);
        closeVendorWindows(vendor);

        /*Si el vendor seleccionado ya existe en este protocolo entonces lo edito*/
        editExistentVendor(id);
    }
</script>